package org.qiuqiu.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.qiuqiu.vo.PaginationVO;
import org.qiuqiu.vo.User;
import org.qiuqiu.vo.UserExample;

public interface UserService {
	
    int countByExample(UserExample example);
   /* User findrole(@Param("user") User user );  */
    int deleteByExample(UserExample example);

  
    int deleteByPrimaryKey(Integer userid);

  
    int insert(User record);

   
    int insertSelective(User record);

   
    List<User> selectByExample(UserExample example);

   
    User selectByPrimaryKey(Integer userid);

    
    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    
    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

   
    int updateByPrimaryKeySelective(User record);

    
    int updateByPrimaryKey(User record);

	

	User findBynameAndPassword(User user);

	Integer findByName(User user);
	  List<User> selectPageByAll(@Param("record") PaginationVO page,@Param("user") User user);
}
